#ifndef __WEBPAGE_H__
#define __WEBPAGE_H__

#include <string>
#include <vector>
#include <map>
#include <set>

using std::string;
using std::vector;
using std::map;
using std::set;

//class Configuration;

class WebPage{
public:
    WebPage(string &docstr/*Configuration &config WordSegmentation &jieba*/);
    ~WebPage();

    int getDocId() const;
    string getTitle() const;
    string getContent() const;
    string getUrl() const;
    //map<string, int> &getWordsMap();   //获取文档的词频统计map
    //void processDoc(const string &doc, /*Configuration &config,*/ 
                   //WordSegmentation &, set<string> &stopWordList); //对格式化文档进行处理
    //void calcTopK(vector<string> &wordsVec, int k,
                 //set<string> &stopWordList); //求取文档的topk词集

private:
    //const static int TOPK_NUMBER = 20;
    int _docId;
    string _docTitle;
    string _docUrl;
    string _docContent;
    //string _docSummary;
    //vector<string> _topWords;    //词频最高的前20个词
    //map<string, int> _wordsMap;  //保存每篇文档的所有词语和词频，不包括停用词
};

#endif